package com.hk.commons.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 新闻模块
 * @author jeff
 *
 */
@Entity
@Table(name = "t_new_info")
public class HKNews implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -9190892373410680479L;

	@Id
    @GeneratedValue (generator =  "paymentableGenerator" )    
    @GenericGenerator (name =  "paymentableGenerator" , strategy =  "increment" ) 
	private Integer id;
	
	/**
	 * 发布平台
	 */
	private String channel;
	
	/**
	 * 新闻标题
	 */
	private String title;
	
	/**
	 * 新闻类型
	 */
	private String type;
	
	/**
	 * 图片地址
	 */
	private String picAddress; 
	
	/**
	 * 新闻链接
	 */
	private String url; 
	
	/**
	 * 新闻状态
	 */
	private Integer status;
	
	/**
	 * 新闻摘要
	 */
	private String summary; 
	
	/**
	 * 新闻内容
	 * */
	@Column(name = "content", columnDefinition = "MediumBlob")
	public byte[] content;
	
	private Long cts;
	
	private Long creator;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPicAddress() {
		return picAddress;
	}

	public void setPicAddress(String picAddress) {
		this.picAddress = picAddress;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

	public Long getCts() {
		return cts;
	}

	public void setCts(Long cts) {
		this.cts = cts;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}
}


 
